package com.xu.fountain.Entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "fountain_feedback", schema = "fountain", catalog = "")
public class FountainFeedbackEntity {
    private int id;
    private Integer uid;
    private String value;
    private Timestamp addtime;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "uid")
    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "value")
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Basic
    @Column(name = "addtime")
    public Timestamp getAddtime() {
        return addtime;
    }

    public void setAddtime(Timestamp addtime) {
        this.addtime = addtime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FountainFeedbackEntity that = (FountainFeedbackEntity) o;
        return id == that.id &&
                Objects.equals(uid, that.uid) &&
                Objects.equals(value, that.value) &&
                Objects.equals(addtime, that.addtime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, uid, value, addtime);
    }
}
